In [1]:
import os, sys
module_path = os.path.abspath(os.path.join('..'))
if module_path not in sys.path:
    sys.path.append(module_path)
    
from ipywidgets import interact, widgets
from task1 import Task1
from task2 import Task2
from task3 import Task3
import plotly
plotly.offline.init_notebook_mode()
In [2]:
task1 = Task1()
task2 = Task2()
task3 = Task3()
In [3]:
@interact(
    height=widgets.IntSlider(
    value=50,
    min=0,
    max=99,
    description='Height Index:',
    continuous_update=False,
    readout_format='i',
    ),
    time=widgets.IntSlider(
    value=25,
    min=1,
    max=48,
    description='Time Index:',
    continuous_update=False,
    readout_format='i',
    ), __manual=True)
def ex2_all(height, time):
    task1.render(time, height)
    task2.render(time, height)
    x = 100
    y = 100
    task3.render(x, y, height)